﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Stack stack = new Stack();
            stack.Push = ("keee");
            stack.Push("hahah");
            stack.Push("lees");
            stack.Push("ccc");
            foreach (var item in stack)
            {
                Console.Write(item + " ");
            }
            Console.WriteLine(stack.Pop());
            Console.WriteLine(stack.Peek());
            foreach (var item in stack)
            {
                Console.Write(item + " ");
            }
            Stack stackNew = new Stack();
            foreach (var item in stackNew)
            {
                Console.Write(item + " ");
            }
            Console.WriteLine(stackNew.Contains("hhh"));
            stackNew.Clear();
            Console.WriteLine(stackNew.Count);



        }
    }
}
